import firebase from 'firebase/app'
import 'firebase/firestore'
var firebaseConfig = {
    apiKey: "AIzaSyD9wLgGbNIi5-TekyljxxR0UZTixtk6qM0",
    authDomain: "rubixstudios-7b06f.firebaseapp.com",
    databaseURL: "https://rubixstudios-7b06f.firebaseio.com",
    projectId: "rubixstudios-7b06f",
    storageBucket: "rubixstudios-7b06f.appspot.com",
    messagingSenderId: "824435295221",
    appId: "1:824435295221:web:8788722d118a20e5af56bc",
    measurementId: "G-C01Z1QWNPR"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
const db = firebase.firestore();

db.settings({ timestampsInSnapshots: true });

export default db;